package com.kamistoat.meimeistore.order.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kamistoat.common.utils.PageUtils;
import com.kamistoat.common.utils.Query;
import com.kamistoat.meimeistore.order.dao.OrderSubOrderRelationDao;
import com.kamistoat.meimeistore.order.entity.OrderSubOrderRelationEntity;
import com.kamistoat.meimeistore.order.service.OrderSubOrderRelationService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("orderSubOrderRelationService")
public class OrderSubOrderRelationServiceImpl extends ServiceImpl<OrderSubOrderRelationDao, OrderSubOrderRelationEntity> implements OrderSubOrderRelationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<OrderSubOrderRelationEntity> page = this.page(
                new Query<OrderSubOrderRelationEntity>().getPage(params),
                new QueryWrapper<OrderSubOrderRelationEntity>()
        );

        return new PageUtils(page);
    }
}